home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XWarpPointer.z / XWarpPointer
Encoding:
Text File  |  2002-10-03  |  4.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXWWWWaaaarrrrppppPPPPooooiiiinnnntttteeeerrrr((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))  XXXXWWWWaaaarrrrppppPPPPooooiiiinnnntttteeeerrrr((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XWarpPointer - move pointer
  10.  
  11.      SSSSYYYYNNNNTTTTAAAAXXXX
  12.           XWarpPointer(_d_i_s_p_l_a_y, _s_r_c__w, _d_e_s_t__w, _s_r_c__x, _s_r_c__y,
  13.           _s_r_c__w_i_d_t_h, _s_r_c__h_e_i_g_h_t, _d_e_s_t__x,
  14.                           _d_e_s_t__y)
  15.                   Display *_d_i_s_p_l_a_y;
  16.                   Window _s_r_c__w, _d_e_s_t__w;
  17.                   int _s_r_c__x, _s_r_c__y;
  18.                   unsigned int _s_r_c__w_i_d_t_h, _s_r_c__h_e_i_g_h_t;
  19.                   int _d_e_s_t__x, _d_e_s_t__y;
  20.  
  21.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  22.           _d_e_s_t__w    Specifies the destination window or _N_o_n_e.
  23.  
  24.           _d_e_s_t__x
  25.           _d_e_s_t__y    Specify the x and y coordinates within the
  26.                     destination window.
  27.  
  28.           _d_i_s_p_l_a_y   Specifies the connection to the X server.
  29.  
  30.           _s_r_c__x
  31.           _s_r_c__y
  32.           _s_r_c__w_i_d_t_h
  33.           _s_r_c__h_e_i_g_h_t
  34.                     Specify a rectangle in the source window.
  35.  
  36.           _s_r_c__w     Specifies the source window or _N_o_n_e.
  37.  
  38.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  39.           If dest_w is _N_o_n_e, _X_W_a_r_p_P_o_i_n_t_e_r moves the pointer by the
  40.           offsets (dest_x, dest_y) relative to the current position of
  41.           the pointer.  If dest_w is a window, _X_W_a_r_p_P_o_i_n_t_e_r moves the
  42.           pointer to the offsets (dest_x, dest_y) relative to the
  43.           origin of dest_w.  However, if src_w is a window, the move
  44.           only takes place if the window src_w contains the pointer
  45.           and if the specified rectangle of src_w contains the
  46.           pointer.
  47.  
  48.           The src_x and src_y coordinates are relative to the origin
  49.           of src_w.  If src_height is zero, it is replaced with the
  50.           current height of src_w minus src_y.  If src_width is zero,
  51.           it is replaced with the current width of src_w minus src_x.
  52.  
  53.           There is seldom any reason for calling this function. The
  54.           pointer should normally be left to the user.  If you do use
  55.           this function, however, it generates events just as if the
  56.           user had instantaneously moved the pointer from one position
  57.           to another.  Note that you cannot use _X_W_a_r_p_P_o_i_n_t_e_r to move
  58.           the pointer outside the confine_to window of an active
  59.           pointer grab.  An attempt to do so will only move the
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXWWWWaaaarrrrppppPPPPooooiiiinnnntttteeeerrrr((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))  XXXXWWWWaaaarrrrppppPPPPooooiiiinnnntttteeeerrrr((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           pointer as far as the closest edge of the confine_to window.
  75.  
  76.           _X_W_a_r_p_P_o_i_n_t_e_r can generate a _B_a_d_W_i_n_d_o_w error.
  77.  
  78.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  79.           _B_a_d_W_i_n_d_o_w A value for a Window argument does not name a
  80.                     defined Window.
  81.  
  82.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  83.           XSetInputFocus(3X11)
  84.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.